<%@page import="com.site.util.exception.SystemException"%>
<%@page language="java" pageEncoding="utf-8" isErrorPage="true"%>
<%@page import="com.site.util.MessageUtils"%>
<%@page import="com.site.util.PropertiesFactory"%>
<%@page import="com.site.util.exception.ApplicationException"%>
<%@include file="/WEB-INF/jsp/base/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<title>Error</title>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/<%=PropertiesFactory.get("baselayer.style") %>" />
  </head>
  
  <body>
  <br><br>
  <table width="100%">
  	<tr>
  		<td align="center">
  			<img src="<c:url value="/images/system/error_warning_${COMMON_LANGUAGE }.jpg"/>">
  		</td>
  	</tr>
  	<tr>
  		<td align="center">
  			<%
				String _struts_error_message="";
				Exception _exception=(Exception)request.getAttribute("exception");
				if(_exception instanceof SystemException){
					SystemException sysexception=(SystemException)_exception;
					if(sysexception!=null){
						for(int i=0;i<sysexception.getMessageList().size();i++){
							_struts_error_message+=MessageUtils.getMessageString(sysexception.getMessageList().get(i),new Object[1],request)+"<br>";
						}
						_struts_error_message=_struts_error_message.replace("\\","\\\\");
					}
					out.print(_struts_error_message);
				}else{
					out.print(_exception.getMessage());
				}
			%>
  			<%=_struts_error_message %>
  			<br>
  			<br>
  			<hr>
  		</td>
  	</tr>
  	<tr id="detail_tr" style="display: ">
  		<td>
  			${exceptionStack} 
  		</td>
  	</tr>
  	</table>
</body>
</html>